package top.caoayu.base.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import top.caoayu.base.entity.Article;
import top.caoayu.common.annatation.AritcleTitleUnique;

import javax.validation.constraints.NotBlank;

@Data
public class ArticleUpdateDTO extends Article {
    private Long id ;
    @ApiModelProperty(value = "")
    @AritcleTitleUnique(message = "不能重复")
    private String title;
    @ApiModelProperty(value = "")
    @NotBlank(message = "不能为空")
    private String content;

    private Integer typeId;
    private Integer tagId;
}
